import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: () => import('../views/Home'),
    children:[
      {
        path:'/bizList',
        component:()=> import('../views/Merchant/bizList')
      },
      {
        path:'/bizVerify',
        component:()=> import('../views/Merchant/bizVerify')
      },
      {
        path:'/repairDepot',
        component:()=> import('../views/Merchant/repairDepot')
      },
      {
        path:'/driverOrder',
        component:()=> import('../views/order/driverOrder')
      },
      {
        path:'/inputOrder',
        component:()=> import('../views/order/inputOrder')
      },
      {
        path:'/orderList',
        component:()=> import('../views/order/orderList')
      },
      {
        path:'/billList',
        component:()=> import('../views/bill/billList')
      },
      {
        path:'/staffList',
        component:()=> import('../views/business/staffList')
      },
      {
        path:'/driverList',
        component:()=> import('../views/driver/DriverListView.vue')
      },
      {
        path:'/stationList',
<<<<<<< HEAD
        component:()=> import('../views/testing/stationList')
      },

        {path:'/driverlist',
        component:()=> import('../views/driver/DriverListView.vue')
=======
        component:()=> import('../views/testing.vue/stationList')
>>>>>>> cc
      },
    ]
  },
  { 
    path: '/login',
    component: () => import('../views/Login')
  },
  {
    path:'/',
    redirect:'/home'
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})



export default router
